export const SELECT_DATA: string[] = ['交易单元', '日期', '时点'];
export const OPTION_KEY: Record<string, any> = {
  交易单元: 'unit',
  日期: 'date',
  时点: 'timeOrder',
};
export const operators = {
  '中长期外送及省内月度以上合同-电量': 'sum',
  '中长期外送及省内月度以上合同-电价':
    '中长期外送及省内月度以上合同-电费 / 中长期外送及省内月度以上合同-电量',
  '中长期外送及省内月度以上合同-电费': 'sum',
  '省内旬交易-电量': 'sum',
  '省内旬交易-电价': '省内旬交易-电费 / 省内旬交易-电量',
  '省内旬交易-电费': 'sum',
  '省内日滚交易-电量': 'sum',
  '省内日滚交易-电价': '省内日滚交易-电费 / 省内日滚交易-电量',
  '省内日滚交易-电费': 'sum',
  对比总电量: 'sum',
  '模拟策略(阶段A中长期+差额现货)-阶段A累计中长期电量': 'sum',
  '模拟策略(阶段A中长期+差额现货)-差额电量(拟以现货结算)': 'sum',
  '模拟策略(阶段A中长期+差额现货)-综合均价': '模拟策略(阶段A中长期+差额现货)-综合收入 / 对比总电量',
  '模拟策略(阶段A中长期+差额现货)-综合收入': 'sum',
  '模拟策略(阶段A中长期+差额现货)-回收费用': 'sum',
  '模拟策略(阶段A中长期+差额现货)-总扣费收入': 'sum',
  '阶段B中长期-累计中长期电量': 'sum',
  '阶段B中长期-累计中长期均价': '阶段B中长期-累计中长期收入 / 阶段B中长期-累计中长期电量',
  '阶段B中长期-累计中长期收入': 'sum',
  '阶段B中长期-回收费用': 'sum',
  '阶段B中长期-总扣费收入': 'sum',
  '阶段B实际-阶段A模拟-收入偏差': 'sum',
  '阶段B实际-阶段A模拟-回收费用偏差': 'sum',
  '阶段B实际-阶段A模拟-总扣费收入偏差': 'sum',
};
export const headerMap: any = {
  '中长期外送及省内月度以上合同-电量': 'mediumAndLongEerm_quantity',
  '中长期外送及省内月度以上合同-电价': 'mediumAndLongEerm_ElectricityPrices',
  '中长期外送及省内月度以上合同-电费': 'mediumAndLongEerm_Electricity',
  '省内旬交易-电量': 'transactionsWithinTheProvince_quantity',
  '省内旬交易-电价': 'transactionsWithinTheProvince_ElectricityPrices',
  '省内旬交易-电费': 'transactionsWithinTheProvince_Electricity',
  '省内日滚交易-电量': 'dayRollingtransactionsWithinTheProvince_quantity',
  '省内日滚交易-电价': 'dayRollingtransactionsWithinTheProvince_ElectricityPrices',
  '省内日滚交易-电费': 'dayRollingtransactionsWithinTheProvince_Electricity',
  对比总电量: 'totalContrastedElectricity',
  '模拟策略(阶段A中长期+差额现货)-阶段A累计中长期电量':
    'simulationStrategy_MediumAndLongTermElectricity',
  '模拟策略(阶段A中长期+差额现货)-差额电量(拟以现货结算)': 'simulationStrategy_TheBalanceCharge',
  '模拟策略(阶段A中长期+差额现货)-综合均价': 'simulationStrategy_IntegratedAverage',
  '模拟策略(阶段A中长期+差额现货)-综合收入': 'simulationStrategy_ComprehensiveIncome',
  '模拟策略(阶段A中长期+差额现货)-回收费用': 'simulationStrategy_RecyclingFee',
  '模拟策略(阶段A中长期+差额现货)-总扣费收入': 'simulationStrategy_TotalWithholdingIncome',
  '阶段B中长期-累计中长期电量': 'mediumAndLong_AccumulatedMediumAndLongTermElectricity',
  '阶段B中长期-累计中长期均价': 'mediumAndLong_AccumulatedMediumAndLongTermPrice',
  '阶段B中长期-累计中长期收入': 'mediumAndLong_AccumulatedMediumAndLongTermIncome',
  '阶段B中长期-回收费用': 'mediumAndLong_RecyclingFee',
  '阶段B中长期-总扣费收入': 'mediumAndLong_TotalWithholdingIncome',
  '阶段B实际-阶段A模拟-收入偏差': 'simulationAndMediumToLongTermComparison_IncomeDeviation',
  '阶段B实际-阶段A模拟-回收费用偏差': 'simulationAndMediumToLongTermComparison_RecyclingDeviation',
  '阶段B实际-阶段A模拟-总扣费收入偏差':
    'simulationAndMediumToLongTermComparison_TotalDeductionIncomeDeviation',
};
export const tableHead = [
  // 阶段B实际-阶段A模拟
  {
    field: 'simulationAndMediumToLongTermComparison_IncomeDeviation',
    name: '收入偏差',
    width: 100,
    parentName: '阶段B实际-阶段A模拟',
  },
  {
    field: 'simulationAndMediumToLongTermComparison_RecyclingDeviation',
    name: '回收费用偏差',
    width: 100,
    parentName: '阶段B实际-阶段A模拟',
  },
  {
    field: 'simulationAndMediumToLongTermComparison_TotalDeductionIncomeDeviation',
    name: '总扣费收入偏差',
    width: 100,
    parentName: '阶段B实际-阶段A模拟',
  },
  //阶段B中长期
  {
    field: 'mediumAndLong_AccumulatedMediumAndLongTermElectricity',
    name: '累计中长期电量',
    width: 100,
    parentName: '阶段B中长期',
  },
  {
    field: 'mediumAndLong_AccumulatedMediumAndLongTermPrice',
    name: '累计中长期均价',
    width: 100,
    parentName: '阶段B中长期',
  },
  {
    field: 'mediumAndLong_AccumulatedMediumAndLongTermIncome',
    name: '累计中长期收入',
    width: 100,
    parentName: '阶段B中长期',
  },
  {
    field: 'mediumAndLong_RecyclingFee',
    name: '回收费用',
    width: 100,
    parentName: '阶段B中长期',
  },
  {
    field: 'mediumAndLong_TotalWithholdingIncome',
    name: '总扣费收入',
    width: 100,
    parentName: '阶段B中长期',
  },
  // 模拟策略(阶段A中长期+差额现货)
  {
    field: 'simulationStrategy_MediumAndLongTermElectricity',
    name: '阶段A累计中长期电量',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  {
    field: 'simulationStrategy_TheBalanceCharge',
    name: '差额电量(拟以现货结算)',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  {
    field: 'simulationStrategy_IntegratedAverage',
    name: '综合均价',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  {
    field: 'simulationStrategy_ComprehensiveIncome',
    name: '综合收入',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  {
    field: 'simulationStrategy_RecyclingFee',
    name: '回收费用',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  {
    field: 'simulationStrategy_TotalWithholdingIncome',
    name: '总扣费收入',
    width: 100,
    parentName: '模拟策略(阶段A中长期+差额现货)',
  },
  //对比总电量
  {
    field: 'totalContrastedElectricity',
    name: '对比总电量',
    width: 100,
    parentName: '对比总电量',
  },
  //中长期外送及省内月度以上合同
  {
    field: 'mediumAndLongEerm_quantity',
    name: '电量',
    width: 100,
    parentName: '中长期外送及省内月度以上合同',
  },
  {
    field: 'mediumAndLongEerm_ElectricityPrices',
    name: '电价',
    width: 100,
    parentName: '中长期外送及省内月度以上合同',
  },
  {
    field: 'mediumAndLongEerm_Electricity',
    name: '电费',
    width: 100,
    parentName: '中长期外送及省内月度以上合同',
  },
  //省内旬交易
  {
    field: 'transactionsWithinTheProvince_quantity',
    name: '电量',
    width: 100,
    parentName: '省内旬交易',
  },
  {
    field: 'transactionsWithinTheProvince_ElectricityPrices',
    name: '电价',
    width: 100,
    parentName: '省内旬交易',
  },
  {
    field: 'transactionsWithinTheProvince_Electricity',
    name: '电费',
    width: 100,
    parentName: '省内旬交易',
  },
  // 省内日滚交易
  {
    field: 'dayRollingtransactionsWithinTheProvince_quantity',
    name: '电量',
    width: 100,
    parentName: '省内日滚交易',
  },
  {
    field: 'dayRollingtransactionsWithinTheProvince_ElectricityPrices',
    name: '电价',
    width: 100,
    parentName: '省内日滚交易',
  },
  {
    field: 'dayRollingtransactionsWithinTheProvince_Electricity',
    name: '电费',
    width: 100,
    parentName: '省内日滚交易',
  },
];
export const SORT = {
  desc: 'desc',
  asc: 'asc',
};
